package com.ybxx.system.action;

import java.util.List;

import javax.annotation.Resource;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.ybxx.core.web.action.BaseAction;
import com.ybxx.system.model.DataRightsChecked;
import com.ybxx.system.service.DataRightsService;

public class DataRightsAction extends BaseAction {
	@Resource
	private DataRightsService dataRightsService;
	private List<DataRightsChecked> dataRightsCheckeds;
	private String loginid;
	private JSONObject resultObj;
	private String msg="succ";
	public String query(){
		dataRightsCheckeds=dataRightsService.queryDataRights(loginid);
		JSONArray temp=JSONArray.fromObject(dataRightsCheckeds);
		resultObj=new JSONObject();
		resultObj.put("rights",temp);
		return "queryDataRights";
	}
	public JSONObject getResultObj() {
		return resultObj;
	}
	public String getMsg() {
		return msg;
	}
	public String getLoginid() {
		return loginid;
	}
	public void setLoginid(String loginid) {
		this.loginid = loginid;
	}
	
}
